<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加文章</title>
</head>
<body>
<form action="{{ url_for('article.publish_article') }}" method="post">
    <p><input type="text" name="title" placeholder="文章标题"></p>
    <p>
        <textarea cols="50" rows="10" placeholder="输入文章内容" name="content">

        </textarea>
    </p>
    <p>
        文章类型：
        <select name="tid">
            <option value="0">请选择文章类型</option>
            {% for type in types %}
                <option value="{{ type.id }}"> {{ type.type_name }}</option>
            {% endfor %}
        </select>
    </p>
    <p><input type="submit" value="添加文章"></p>
</form>

</body>
</html>